<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<import type="js" file="js.jquery" />
<import type="js" file="js.common" />
<import type="css" file="css.global" />
<import type="css" file="css.form" />
<import file="js.My97DatePicker.WdatePicker" />
</head>
<body>
<div class="search">
	<b>管理表单 - {$data_sort.sort_name}</b>
</div>
<div class="list">
<table class="stripe" cellspacing="0">
    <thead>
        <tr>
            <th width="10%">序号</th>
            <th width="40%">表单名称</th>
            <th width="50%">操作</th>
        </tr>
    </thead>
 
    <tbody>
   	  <volist name="data_list" id="vo" empty="$empty">
        <tr>
        	<td align="center">{$i}</td>
			<td>{$vo.form_name}</td>
			 <td>
				<a href="javascript:void(0);" onclick="edit({$vo.form_id},{$data_sort.sort_id},0);" title="编辑表单名称">编辑表单名称</a> |
				<a href="javascript:void(0);" onclick="form({$vo.form_id},{$data_sort.sort_id},1);" title="智能表单设计器">智能表单设计器</a> |
				<a href="javascript:void(0);" onclick="view({$vo.form_id},{$data_sort.sort_id});">预览</a> |
				<a href="javascript:void(0);" onclick="delete_form({$vo.form_id},{$data_sort.sort_id});">删除</a>
        </tr>
      </volist>
    </tbody>
</table>
</div>
</body>
<script language="javascript">
$(document).ready(function(){  
	$(".stripe tr").mouseover(function(){    
	  $(this).addClass("over");}).mouseout(function(){   
			$(this).removeClass("over");}) 
  	$(".stripe tr:even").addClass("alt");
}); 
function delete_form(form_id,sort_id)
{
	msg='确认要删除该表单么？';
	if(confirm(msg))
	{
		$.get("__APP__/WorkFlowSys/flow_form_delete?form_id="+form_id+"&sort_id="+sort_id, function(result){
			location.reload();
			parent.frames['list'].refresh()
		});
	}
}

function view(form_id){
	myleft=(screen.availWidth-1000)/2;
	window.open("__APP__/WorkFlowSys/flow_form_info?form_id="+form_id,"proc_view","status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=1000,height=400,left="+myleft+",top=100");

}

function edit(form_id){
	window.location="__APP__/WorkFlowSys/flow_form_edit?form_id="+form_id;
}

function form(form_id)
{
	window.open("__APP__/WorkFlowSys/flow_form_model_save/form_id/"+form_id,"cool_form","menubar=0,toolbar=0,scrollbars=no,status=0,resizable=1")
}
</script>
</html>